package com.weimon.order.service.stub;

import com.weimob.bean.User;
import com.weimob.service.UserService;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

/**
 * @author cyt
 * @create 2021-03-18 13:55
 */
@Slf4j
public class UserServiceStub implements UserService {

    private final UserService userService;

    public UserServiceStub(UserService userService) {
        this.userService = userService;
    }


    @Override
    public List<User> getUserAddressList(String userId) {
        log.info("本地存根： " + userId);
        return userService.getUserAddressList(userId);
    }
}
